package react.vo;

import java.io.Serializable;
import java.util.Set;

public class User implements Serializable {
  private String userName;
  private String token;
  private boolean authenticated;
  private Set<String> roles;

  public User() {
  }

  public User(String userName, Set<String> roles, String token, boolean authenticated) {
    this.userName = userName;
    this.token = token;
    this.authenticated = authenticated;
    this.roles = roles;
  }

  public String getUserName() {
    return userName;
  }

  public String getToken() {
    return token;
  }

  public boolean isAuthenticated() {
    return authenticated;
  }

  public Set<String> getRoles() {
    return roles;
  }
}
